package com.screw.carnival.sdk.utils;

import android.app.Activity;
import android.widget.Toast;

public class SCarnivalToastUtil {
    private static Activity activity;

    public static void init(Activity act) {
        activity = act;
    }

    public static void showToast(final String message) {
        activity.runOnUiThread(new Runnable() {
            @Override
            public void run() {
                Toast.makeText(activity, message, Toast.LENGTH_SHORT).show();
            }
        });
    }
}

